<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'chronicdisApply_open.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="css/styles.css">
	<link rel="stylesheet" href="css/admin.css">
	<script src="js/jquery-1.4.4.min.js"></script>
	<script src="js/admin.js"></script>
  </head>

<body>
	
	<form method="post" action="" id="listform">
		<div class="panel admin-panel">
			<div class="panel-head">
				<strong class="icon-reorder">慢性病报销列表</strong>
			</div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left:10px;">
					<li>搜索：</li>
					<li><input type="text" placeholder="请输入搜索的身份证号" name="keywords"
						class="input"
						style="width:250px; line-height:17px;display:inline-block" /> <a
						href="javascript:void(0)" class="button border-main icon-search"
						onclick="changesearch()"> 搜索</a></li>
						<li><a class="button border-main icon-plus-square-o"
						href="<%=path%>/system/ChronicdisApplyServlet?m=tlist"> 报销信息</a></li>
				</ul>
			</div>
		</div>
	</form>

</body>
<script>
    function changesearch(){
    	$.ajax({
    		type:"post",
    		url:"<%=path %>/system/PayRecordServlet?m=iscanhe&mhcx="+$('.input').val(),
    		dataType:"json",
    		success:function(data){
    			if(data){
    				window.location.href="<%=path %>/system/PayRecordServlet?m=listapply&mhcx="+$('.input').val();
    			}else{
    				alert("对不起,该用户没有参合");
    				$('.input').val("");
    			}
    		}
    	
    	});
    }
</script>
</html>
